import request from '@/utils/request'

export function getWarningTypePage(data) {
    return request({
        url: '/warningType/toPageList.do',
        method: 'post',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'      //改这里就好了
        },
        data,
    })
}

export function getWarningTypeList(data) {
    return request({
        url: '/warningType/getList.do',
        method: 'post',
        // headers: {
        //     'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'      //改这里就好了
        // },
        data,
    })
}

export function doWarningTypeEdit(data) {
    return request({
        url: '/warningType/toEdit.do',
        method: 'post',
        // headers: {
        //     'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'      //改这里就好了
        // },
        data,
    })
}

export function doWarningTypeDelete(data) {
    return request({
        url: '/warningType/deleteId.do?id=' + data,
        method: 'post'
    })
}

export function getWarningTypeById(data) {
    return request({
        url: '/warningType/getById.do?id=' + data,
        method: 'post'
    })
}

